#pragma once

#include <memory>
#include <unordered_map>

class xbiz_t;
class pkg;

class xmarket_t
{
private:
    std::unordered_map<uint32_t, std::shared_ptr<xbiz_t>> xbiz_dict_;
public:
    xmarket_t(/* args */);
    virtual ~xmarket_t();
    virtual int init();
    virtual int uninit();

    int add_biz(uint32_t tid, std::shared_ptr<xbiz_t> xbiz);

    virtual int handle_input(pkg& data);
};